package ljk;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Testljk{
    @Test
    public void test1(){
        ApplicationContext ac=new ClassPathXmlApplicationContext("ljkbean.xml");
        ljk s=(ljk)ac.getBean("aaron");
        System.out.println(s);
        ((ClassPathXmlApplicationContext)ac).close();
    }
}